package com.coolcode.vo;

import lombok.Data;

import javax.validation.Valid;
import javax.validation.constraints.Max;
import javax.validation.constraints.Min;

@Data
public class PageVO<T> {

    @Valid
    private T query;

    @Min(value = 1, message = "invalid format")
    private long pageNum;

    @Min(value = 1, message = "invalid format")
    @Max(value = 10, message = "invalid format")
    private long pageSize;
}
